/**
 * 
 */
package dh.abs.util;

import java.util.Collection;

/**
 * @author denialhumanity
 * @param <E>
 *
 */
public class SuspendableCollection<E> {

	Collection<E> collection;
	/**
	 * 
	 */
	@SuppressWarnings("unused")
	private SuspendableCollection() {
	}
	
	public SuspendableCollection(Collection<E> collection) {
		this.collection = collection;
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		
		if(collection == null) {
			return null;
		}
		for(E e: collection) {
			sb.append(e);
			sb.append(",");
		}
		sb.deleteCharAt(sb.length() - 1);
		
		return sb.toString();
	}

}
